package com.example.bysj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author chuanyuzhou
 * @since 2022-04-21
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "User对象", description = "")
@ToString
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("警员编号")
      @TableId(value = "uid", type = IdType.AUTO)
      private Integer uid;


      @ApiModelProperty("警员姓名")
      private String username;


      @ApiModelProperty("密码")
      private String password;


      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;

      @ApiModelProperty("角色")
      private String role;


}
